package org.dromara.admin.domain.bo;

import org.dromara.admin.domain.Employee;
import org.dromara.admin.enums.GeneralEnum;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 员工信息业务对象 bi_employee
 *
 * @author Lion Li
 * @date 2025-10-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Employee.class, reverseConvertGenerate = false)
public class EmployeeBo extends BaseEntity {

    /**
     * 员工唯一ID
     */
    private Long id;

    /**
     * 关联主体ID（归属主体，关联bi_company.id）
     */
    private Long companyId;

    /**
     * 账号（登录账号，唯一）
     */
    private String userName;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 密码（明码）
     */
    private String password;

    /**
     * 员工姓名
     */
    private String realName;

    /**
     * 角色：ADMIN-管理，EMPLOYEE-员工
     */
    private GeneralEnum role;

    /**
     * 状态：Y-正常，N-冻结
     */
    private GeneralEnum status;


}
